@(uis: List[models.user.UserInfo]) 
@import models.user.PortraitUserInfo
<div class="col-xs-3">
    <div class="panel panel-default">
        <div class="panel-heading">大家都在看</div>
        <div class="panel-body">
            <div class="list-group">
                <a href="#" class="list-group-item">
                    <h4 class="list-group-item-heading">List group item heading</h4>

                    <p class="list-group-item-text">Donec id elit non mi porta gravida at eget metus. Maecenas
                        sed diam
                        eget risus varius blandit.</p>
                </a>
                <a href="#" class="list-group-item">
                    <h4 class="list-group-item-heading">List group item heading</h4>

                    <p class="list-group-item-text">Donec id elit non mi porta gravida at eget metus. Maecenas
                        sed diam
                        eget risus varius blandit.</p>
                </a>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">推荐好友</div>
        <div class="panel-body">
        	@for(ui <- uis){
            <div class="col-xs-4 col-md-4">
                <a class="thumbnail" href="/myfriend/add/@ui.username">
                    <img alt="100%x180" data-src="./js/holder.min.js/100%x180"
                    
                    @defining(PortraitUserInfo.getInstances().getPUI(ui.username).portrait){ portrait =>
                    @if(portrait == null || portrait == ""){
							src="http://meng-user.qiniudn.com/pic.png"
						}else{
							src="@portrait"
					}}
					>
                </a>
            </div>
            }
        </div>
    </div>
</div>